/**
 * 
 */
package com.sian.base.listener;

import java.util.List;
import java.util.Map;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;


import org.springframework.context.ApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

/**
 * contextListener init Data
 * @author desert
 * @version 1.0 2014/2/18
 */
public class InitDataListener implements ServletContextListener{

	public void contextDestroyed(ServletContextEvent arg0) {
		// TODO Auto-generated method stub
		
			
	}

	public void contextInitialized(ServletContextEvent sce) {
		
		ServletContext sc = sce.getServletContext();
		
		ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(sc);
		
		/*DictionaryService  ds = (DictionaryService) ac.getBean("dictionaryService");
		
		Map<String ,List<Dictionary>>  map = ds.getDIC();
		
		ds.setInitDictionaryMap(map);*/
		
		
	}
}
